import mpAutoReplyApi from "@/api/declaration/mp/mpAutoReplyApi"
import httpRequest from "@/config/axios/httpRequest"

// 创建公众号的自动回复
export const createAutoReply = (data) => {
  return httpRequest.post(mpAutoReplyApi.GreateAutoReply, data)
}

// 更新公众号的自动回复
export const updateAutoReply = (data) => {
  return httpRequest.put(mpAutoReplyApi.UpdateAutoReply, data)
}

// 删除公众号的自动回复
export const deleteAutoReply = (id) => {
  return httpRequest.delete(mpAutoReplyApi.DeleteAutoReply, { params: { id } })
}

// 获得公众号的自动回复
export const getAutoReply = (id) => {
  return httpRequest.get(mpAutoReplyApi.GetAutoReply, { params: { id } })
}

// 获得公众号的自动回复分页
export const getAutoReplyPage = (query) => {
  return httpRequest.get(mpAutoReplyApi.GetAutoReplyPage, { params: query })
}
